package com.wanmait.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 车辆信息表
 */
@Data
@Accessors(chain = true)
@TableName(value = "car")
public class Car {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 车牌号
     */
    @TableField(value = "plate_num")
    private String plateNum;

    /**
     * 颜色
     */
    @TableField(value = "color")
    private String color;

    /**
     * 品牌
     */
    @TableField(value = "brand")
    private String brand;

    /**
     * 进入时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 离开时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 车主电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 类型，1临时0常驻
     */
    @TableField(value = "temp_car")
    private Boolean tempCar;

    /**
     * 创建用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 创建时间
     */
    @TableField(value = "creat_time")
    private Date creatTime;

    /**
     * 更新用户id
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 是否离开，0没有1走了
     */
    @TableField(value = "`leave`")
    private Boolean leave;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 删除标志1未删除0删除
     */
    @TableField(value = "`enable`")
    private Boolean enable;
    @TableField(exist = false)
    private CarParkingSpot carParkingSpot;
}